package com.cq.hd.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cq.hd.order.api.vo.MonthSettleBillVo;
import com.cq.hd.order.po.TbMonthSettleBillWithdrawalPo;

import java.util.List;

/**
 * <p>
 * 月度结算单表-提现申请 关联 Mapper 接口
 * </p>
 */
public interface TbMonthSettleBillWithdrawalMapper extends BaseMapper<TbMonthSettleBillWithdrawalPo> {
    /**
     * 根据提现记录弟，删除 月度结算单-提现申请 关联表记录 （软删除）
     */
    int deleteByWithdrawalId(Long withdrawalId);

    /**
     * 批量插入数据
     */
    int batchInsert(List<TbMonthSettleBillWithdrawalPo> tbMonthSettleBillWithdrawalPos);

    /**
     * 根据提现记录id查询月度账单
     */
    List<MonthSettleBillVo> selectMonthSettleBillByWithdrawalId(Long withdrawalBillId);

}
